/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package task06;

/**
 *
 * @author Administrator
 */
public class Man {
     private String eyescolor;

    public String getEyescolor() {
        return eyescolor;
    }
    public void setEyescolor(String eyescolor) {
        this.eyescolor = eyescolor;
    }     
    public String getColor(){
        return null;
    }    
    public static void main(String[] args) {
        Man asia = new AsiaMan();
        System.out.println("亚洲人的肤色是"+ asia.getColor());
        Man euro = new EuroMan();
        System.out.println("欧洲人的肤色是"+ euro.getColor());
    }
}
class AsiaMan extends Man{

    @Override
    public String getColor() {
        return "黄皮肤的";
    }      
}

class EuroMan extends Man{

    @Override
    public String getColor() {
        return "白皮肤的";
    }   
}



